import 'package:flutter/material.dart';
import 'package:online_study/theme/colors.dart';
import 'package:online_study/theme/size.dart';
import 'package:online_study/theme/string.dart';

//课程搜索
class CourseSearchPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.symmetric(
          horizontal: ThemeSize.width9, vertical: ThemeSize.width9),
      height: ThemeSize.height48,
      color: ThemeColor.colorWhite,
      child: Container(
        height: ThemeSize.height30,
        // padding: EdgeInsets.symmetric(horizontal: ThemeSize.width9),
        decoration: BoxDecoration(
            color: ThemeColor.colorSearchInner,
            borderRadius: BorderRadius.circular(ThemeSize.width15),
            border: Border.all(
                color: ThemeColor.colorCorner, width: ThemeSize.width1)),
        child: TextField(
          decoration: InputDecoration(
              prefixIcon: Icon(Icons.search),
              border: InputBorder.none,
              hintText: ThemeString.search_course,
              hintStyle: TextStyle(
                  color: ThemeColor.color333333, fontSize: ThemeSize.sp13)),
          style: TextStyle(
              color: ThemeColor.color333333, fontSize: ThemeSize.sp13),
          maxLines: 1,
        ),
      ),
    );
  }
}
